import request from '@/utils/request'

// 查询运单查询列表
export function listQuery(query) {
  return request({
    url: '/waybills/waybill/list',
    method: 'get',
    params: query
  })
}

// 查询运单查询详细
export function getQuery(wayBillId) {
  return request({
    url: '/waybills/waybill/' + wayBillId,
    method: 'get'
  })
}

// 新增运单查询
export function addQuery(data) {
  return request({
    url: '/waybills/waybill',
    method: 'post',
    data: data
  })
}

// 修改运单查询
export function updateQuery(data) {
  return request({
    url: '/waybills/waybill',
    method: 'put',
    data: data
  })
}

// 删除运单查询
export function delQuery(wayBillId) {
  return request({
    url: '/waybills/waybill/' + wayBillId,
    method: 'delete'
  })
}

// 查询运单列表，扩展
export function listQueryExt(query) {
  return request({
    url: '/waybills/waybill/list/ext',
    method: 'get',
    params: query
  })
}
